// 配置路由
import {createRouter, createWebHashHistory} from 'vue-router'
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    // 重定向到登录页面 
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/login',
      name: '登录',
      component: () => import('pages/login.vue')
    },
    {
      path: '/',
      component: () => import('comp/frame.vue'),
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('pages/home.vue'),
        },  
      ],
    },
  ]
})
export default router
